package com.jiang.demo.handle;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 全局请求继承基类
 */
@Component
public class Requests implements Serializable {

    @ApiModelProperty(value = "token", required = true, position = 9991)
    @Length(max = 1000, message = "token长度超出限制")
    private String itoken;

    public String getItoken() {
        return itoken;
    }
    public void setItoken(String itoken) {
        this.itoken = itoken;
    }
}
